﻿#include <iostream>
#include<fstream>
#include <vector>
#include<istream>
#include<string>

using namespace std;
int main()
{
    ifstream ifs("text.cpp");//read file
    //是否读取成功
    if (!ifs) {
        cout << "defeat" << endl;
        return -1;
    }
    string line;

    vector<string> a;
    while (getline(ifs, line)) {
        a.push_back(line);
    }

    ofstream ofs("")
}

